﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TCDMaster.Master" AutoEventWireup="true" CodeBehind="ThemMonHoc.aspx.cs" Inherits="TraCuuDiemNhom3.ThemMonHoc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <center>
   &nbsp; Form Thêm Mới Môn Học ( Tạo danh sách lớp)</center>
    &nbsp;Lớp:&nbsp;
    <asp:DropDownList ID="ddlLop" runat="server" Height="37px" Width="110px" 
        onselectedindexchanged="ddlLop_SelectedIndexChanged">
    </asp:DropDownList>
    Chọn học kỳ<asp:DropDownList ID="ddlHocKy" runat="server" Height="37px" 
       AutoPostBack="true" Width="39px" 
        onselectedindexchanged="ddlHocKy_SelectedIndexChanged" >
        <asp:ListItem>1</asp:ListItem>
        <asp:ListItem>2</asp:ListItem>
        <asp:ListItem>3</asp:ListItem>
        <asp:ListItem>4</asp:ListItem>
        <asp:ListItem>5</asp:ListItem>
        <asp:ListItem>6</asp:ListItem>
        <asp:ListItem>7</asp:ListItem>
        <asp:ListItem>8</asp:ListItem> 

    </asp:DropDownList>
&nbsp;Môn học:<asp:DropDownList ID="ddlMonHoc" runat="server" height="37px" 
        Width="84px" onselectedindexchanged="ddlMonHoc_SelectedIndexChanged">
    </asp:DropDownList>
&nbsp;&nbsp;<asp:Button ID="btnThem" runat="server" Text="Thêm" Width="117px" 
        onclick="btnThem_Click" height="37px" />
    <br />
   <asp:GridView ID="gvDiem" runat="server" EnableModelValidation="True" 
        AutoGenerateColumns="False" 
        onselectedindexchanged="gvDiem_SelectedIndexChanged" CellPadding="4" 
        ForeColor="#333333" GridLines="None">
       <AlternatingRowStyle BackColor="White" />
    <Columns>
        <asp:BoundField DataField="mamh" HeaderText="Mã môn học" />
        <asp:BoundField DataField="masv" HeaderText="Mã sinh viên" />         
        <asp:BoundField DataField="hocky" HeaderText="Học kỳ" />
        <asp:TemplateField HeaderText="KT cột 1">
            <ItemTemplate >
                <asp:TextBox id="txtKt1" Text='<%#Eval("KT1")%>' Width=50 runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
            
        <asp:TemplateField HeaderText="KT cột 2">
        <ItemTemplate >
                <asp:TextBox id="txtKt2"  Text='<%#Eval("KT2")%>' Width=50 runat="server" />
            </ItemTemplate>
        </asp:TemplateField>

        <asp:TemplateField HeaderText="KT cột 3">
            <ItemTemplate >
                <asp:TextBox id="txtKt3"  Text='<%#Eval("KT3")%>' Width=50 runat="server" />
            </ItemTemplate>
        </asp:TemplateField>

        <asp:TemplateField HeaderText="KT cột 4">
            <ItemTemplate >
                <asp:TextBox id="txtKt4" Text='<%#Eval("KT4")%>'   Width="50" runat="server" />
            </ItemTemplate>
        </asp:TemplateField>

        <asp:TemplateField HeaderText="KT cột 5" >
            <ItemTemplate >
                <asp:TextBox id="txtKt5"  Text='<%#Eval("KT1")%>' Width=50 runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
         <asp:TemplateField HeaderText="Thi KT" >
            <ItemTemplate >
                <asp:TextBox id="txtThi"  Text='<%#Eval("thi1")%>' Width=50 runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
       <asp:TemplateField HeaderText="Tổng kết" >
            <ItemTemplate >
                <asp:TextBox id="txtTk"  Text='<%#Eval("tk")%>' Width=50 runat="server" />
                <asp:HiddenField runat="server" ID="hidenMaSV" Value='<%#Eval("MaSV")%>' />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
       <EditRowStyle BackColor="#7C6F57" />
       <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
       <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
       <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
       <RowStyle BackColor="#E3EAEB" />
       <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
</asp:GridView>
    &nbsp;
    <asp:Button ID="btnTiepTuc" runat="server" Text="Tiếp" Width="121px" 
        onclick="btnTiepTuc_Click" Visible="False" />
    <asp:Button ID="btnSave" runat="server" Text="Lưu" Width="121px" 
        onclick="btnSave_Click" Visible="False" />
    <asp:Button ID="btnCancel" runat="server" Text="Hủy" Width="111px"   
        onclick="btnCancel_Click" Visible="False"/>
    <asp:Label ID="lblStatus" runat="server" Font-Bold="True" Font-Size="Medium" 
        ForeColor="#FF3300"></asp:Label>
    <br />

</asp:Content>
